package com.xfb.jdbc.sqlSession;

import com.xfb.jdbc.pojo.Configuration;

/**
 * @Auther: Xing Fang Bin
 * @Date: 2021/07/01/11:20
 * @Description:
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public Session openSession() {
        return new DefaultSession(configuration);
    }
}
